//
//  GourmetFierdTableViewCell.m
//  ForengnMenu
//
//  Created by wenzhaoxu on 16/1/24.
//  Copyright © 2016年 余旺. All rights reserved.
//

#import "GourmetFierdTableViewCell.h"

@implementation GourmetFierdTableViewCell

- (void)awakeFromNib {

    self.focusBnt.layer.borderWidth = 1;
    
    self.focusBnt.layer.borderColor = [UIColor colorWithRed:248/255.0f green:102/255.0f blue:79/255.0f alpha:1.0f].CGColor;
    
    self.focusBnt.layer.cornerRadius = 4.0f;
    self.focusBnt.layer.masksToBounds = YES;
    

}
- (IBAction)focusAction:(id)sender {
    
    if (self.isOpen) {
        self.focusBnt.layer.borderColor = [UIColor colorWithRed:248/255.0f green:102/255.0f blue:79/255.0f alpha:1.0f].CGColor;
        [self.focusBnt setTitle:@"关注" forState:UIControlStateNormal];
        [self.focusBnt setTitleColor:[UIColor colorWithRed:248/255.0f green:102/255.0f blue:79/255.0f alpha:1.0f] forState:UIControlStateNormal];
        self.isOpen=NO;
    }else{
        self.focusBnt.layer.borderColor = [UIColor grayColor].CGColor;
        [self.focusBnt setTitle:@"已关注" forState:UIControlStateNormal];
        [self.focusBnt setTitleColor:[UIColor grayColor] forState:UIControlStateNormal];
        self.isOpen=YES;
    }
    
    
    
}



@end
